package com.fcy.teamwork.business.self

import com.fcy.teamwork.App
import com.fcy.teamwork.pojo.*
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface SelfInfoService {

    @GET("sms/apply/loadInvolved")
    suspend fun loadProjectsInvolved(@Query("userName") userName: String = App.person.personId): TeamWorkResult<List<JobApplyDetail>>

    @GET("sms/person/getPersonInfo/1/1")
    suspend fun loadPersonInfo(@Query("personId") userName: String): TeamWorkResult<List<Person>>

    @POST("sms/person/addSkill")
    suspend fun updateSkill(@Body person: Person):TeamWorkResult<Boolean>
}